package com.cnap.multiclouldmgmt.model.dockerHarborModel;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
 * @author dyq
 * harbor 操作model
 */
@ApiModel(value = "com.cnap.multiclouldmgmt.model.dockerHarborModel.HarborRegistryModel",description = "注册仓库要用到的信息")
public class HarborRegistryModel {

    //credential
    @ApiModelProperty(value = "credential")
    private CredentialModel credential;

    //insecure true 表示不用校验https证书
    @ApiModelProperty(value = "credential")
    private boolean insecure = true;


    //name仓库名称
    @ApiModelProperty(value = "name仓库名称")
    private String name;

    //type 仓库类型
    @ApiModelProperty(value = "仓库类型")
    private String type = "harbor";


    //url 仓库链接
    @ApiModelProperty(value = "url 仓库链接")
    private String url;

    /**
     * get
     *
     * @return Credential
     */
    public CredentialModel getCredential() {
        return credential;
    }

    /**
     * set
     *
     * @param credential credential
     */
    public void setCredential(CredentialModel credential) {
        this.credential = credential;
    }

    /**
     * get
     *
     * @return Insecure
     */
    public boolean isInsecure() {
        return insecure;
    }

    /**
     * set
     *
     * @param insecure insecure
     */
    public void setInsecure(boolean insecure) {
        this.insecure = insecure;
    }

    /**
     * get
     *
     * @return Name
     */
    public String getName() {
        return name;
    }

    /**
     * set
     *
     * @param name name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * get
     *
     * @return Type
     */
    public String getType() {
        return type;
    }

    /**
     * set
     *
     * @param type type
     */
    public void setType(String type) {
        this.type = type;
    }

    /**
     * get
     *
     * @return Url
     */
    public String getUrl() {
        return url;
    }

    /**
     * set
     *
     * @param url url
     */
    public void setUrl(String url) {
        this.url = url;
    }
}
